package cn.ilovese.collect.vo.work;

import cn.ilovese.collect.po.work.Work;
import lombok.NonNull;

public class WorkVO {
    private Integer id;

    private Integer taskId;

    private Integer userId;

    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public WorkVO(@NonNull Work work){
        id=work.getId();
        taskId= work.getTaskId();
        userId= work.getUserId();
        status= work.getStatus();
    }

    public WorkVO(){

    }
}